<template>
  <div>
    <van-empty image="error" description="找不到页面">
      <van-button
        round
        type="primary"
        class="bottom-button"
        @click="redirectToHome"
        >返回首页</van-button
      >
    </van-empty>
  </div>
</template>

<script setup lang="ts" name="Error">
function redirectToHome() {
  router.replace('/home')
}
</script>

<style lang="scss" scoped>
.bottom-button {
  width: 260px;
}
</style>
